package com.bw.service;

import com.bw.domain.UserAddress;
import com.bw.mapper.UserAddressMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserAddresServiceImpl implements UserAddresService {
    @Autowired
    UserAddressMapper userAddressMapper;

//查询用户信息
    @Override
    public List<UserAddress> getList(String addres, String name) {
        return userAddressMapper.getList(addres,name);
    }
//删除用户信息
    @Override
    public int del(int id) {
        return userAddressMapper.del(id);
    }
//添加用户信息
    @Override
    public int add(UserAddress userAddress) {
        return userAddressMapper.add(userAddress);
    }

}
